package com.zeratul.common.dubbo.config;

import com.zeratul.common.core.factory.YmlPropertySourceFactory;
import com.zeratul.common.dubbo.config.prop.ZeratulDubboProperties;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.PropertySource;

@AutoConfiguration
@EnableDubbo(scanBasePackages = "${dubbo.base-packages}")
@PropertySource(value = "classpath:common-dubbo.yml", factory = YmlPropertySourceFactory.class)
@EnableConfigurationProperties(ZeratulDubboProperties.class)
public class ZeratulDubboAutoConfigration {
}
